package com.zhangyusheng.easyecharts.component;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * TODO: 渐变色
 *
 * @author Michael zhang
 * @email zhangys_0217@sina.com
 * @since 2025年11月03日
 */
@Data
@Accessors(chain = true)
public class ColorStop implements Serializable {
    private final static long serialVersionUID = 2L;
    /**
     * 颜色偏移量
     */
    private double offset;
    /**
     * 颜色
     */
    private String color;
    public ColorStop(double offset, String color) {
        this.offset = offset;
        this.color = color;
    }
    public double getOffset() {
        return offset;
    }
    public void setOffset(double offset) {
        this.offset = offset;
    }
    public String getColor() {
        return color;
    }
    public void setColor(String color) {
        this.color = color;
    }
}
